package com.atguigu.gmall.common.config.minio;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author nicc
 * @version 1.0
 * @className MinioProperties
 * @description TODO
 * @date 2022-09-28 21:33
 */

//属性类扫描配置文件中指定前缀
@ConfigurationProperties(prefix = "app.minio")
@Component
@Data
public class MinioProperties {

    //属性与配置文件中同名可省略@Value
    String secretKey;
    String accessKey;
    String endpoint;
    String bucketName;

}
